package com.ruoyi.qxk.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.qxk.api.domain.RescueType;
import com.ruoyi.qxk.api.factory.RemoteRescueTypeFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 用户服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteRescueTypeService", value = ServiceNameConstants.QXK_SERVICE, fallbackFactory = RemoteRescueTypeFallbackFactory.class)
public interface RemoteRescueTypeService
{
    @GetMapping("/rescuetype/getlist")
    public  List<RescueType> getlist(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

}
